package la.iok.hzsvn.lewin.movie.cloud.model;

import la.iok.hzsvn.share.address.Address;

import java.util.Objects;

public class OrgUnitParam {
    /**
     * 类型,1：店铺；2：加盟商
     */
    private int type;
    /**
     * 名称
     */
    private String name;
    /**
     * PAD端是否隐藏云端剧本列表，1：隐藏，0:不隐藏。默认为0
     */
    private Integer hideCloudMovie;
    /**
     * 地址
     */
    private Address address;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getHideCloudMovie() {
        return hideCloudMovie;
    }

    public void setHideCloudMovie(Integer hideCloudMovie) {
        this.hideCloudMovie = hideCloudMovie;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrgUnitParam that = (OrgUnitParam) o;
        return type == that.type && Objects.equals(name,that.name) && Objects.equals(address,that.address);
    }

    @Override
    public int hashCode() {
        return Objects.hash(type, name, address);
    }
}
